package com.xuelangyun.model;

/** @Version 1.0 @Author:xinyan @Date:2022/4/16 @Content: */
/** 返回封装对象 用来存放状态及提示信息 */
public class ResultInfo {
  // 结果状态码  200=成功，500=失败
  private Integer code = 200;
  // 结果提示信息
  private String resultMsg = "操作成功！";

  public Integer getCode() {
    return code;
  }

  public void setCode(Integer code) {
    this.code = code;
  }

  public String getResultMsg() {
    return resultMsg;
  }

  public void setResultMsg(String resultMsg) {
    this.resultMsg = resultMsg;
  }

  @Override
  public String toString() {
    return "ResultInfo{" +
            "code=" + code +
            ", resultMsg='" + resultMsg + '\'' +
            '}';
  }
}
